﻿@{
    ViewBag.Title = "Đặt mua sản phẩm";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@model IEnumerable<EC_ASS.Models.ShopItem>

<div class="container">
    <div class="row" style="margin-top: 50px;">
        <div class="span5">
            <h4>Qui trình đặt hàng - thanh toán</h4>
            <img src="@Url.Content("~/img/thanhtoan.png")" />
        </div>
        <div class="span7">
            <h4 class="span7">Thông tin giỏ hàng</h4>
            <div class="span7 row">
                <table class="table table-striped">
                    <thead>
                        <th>Hình ảnh</th>
                        <th>Tên sản phẩm</th>
                        <th>Giá (VAT)</th>
                        <th>Size</th>
                        <th>Số lượng</th>
                        <th>Thành tiền</th>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    <img src="@Url.Content("~/"+ item.cPicture)" height="70" width="70"/></td>
                                <td>@item.cName</td>
                                <td>@item.cPrice</td>
                                <td>@item.cSize</td>
                                <td>@item.cQuantity</td>
                                <td>@(item.cQuantity*item.cPrice) VNĐ</td>
                            </tr>
                        }
                        <tr>
                            <td colspan="4"></td>
                            <td><span class="label label-info">Total</span></td>
                            <td>@ViewBag.Total VNĐ</td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <div class="span7 row">
                <h5>Ghi chú đơn hàng</h5>
                <textarea name="Note" rows="4" class="span7"></textarea>               
                <button style="float:right;" type="submit" class="btn"><i class="icon-ok"> Đặt hàng</i></button> 
                <a style="float:left;" href="/Home/Index" class="btn"><i class="icon-refresh"> Tiếp tục mua hàng</i></a>         
            </div>
        </div>
    </div>
</div>
<hr class="tall"/>
<div class="container">
    <h4>Thanh toán</h4>
    <div class="row">
        @Html.Partial("_Payment")
    </div>
</div>
